﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MvcSimpleQuery.Events
{
    public class SimpleQueryEvents : WidgetEvents, MvcSimpleQuery.Events.ISimpleQueryEventBuilder
    {
        public string @Build { get { return this["build"]; } private set { this["build"] = value; } }
        public string @Clear { get { return this["clear"]; } private set { this["clear"] = value; } }

        public SimpleQueryEvents()
        {
            Build = "";
            Clear = "";
        }

        public SimpleQueryEvents OnBuild(string @event)
        {
            Build = @event;
            return this;
        }

        public SimpleQueryEvents OnClear(string @event)
        {
            Clear = @event;
            var list = new List<string>();
            return this;
        }

    }
}
